@import url('components.css');

* {
   box-sizing: border-box;
}





#sepet_toplam_tutar {
    font-size: 0.85rem;
    color: #fff;
    background-color: #4CAF50;
    padding: 2px 6px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 5px;
}

.trust-banner {
    background: #1abc9c;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    font-size: 15px;
}






.home-bg{
   background: url(../images/home-bg.jpg) no-repeat;
   background-size: cover;
   background-position: center;
}

.home-bg .home{
   display: flex;
   align-items: center;
   min-height: 60vh;
}

.home-bg .home .content{
   width: 50rem;
}

.home-bg .home .content span{
   color:var(--orange);
   font-size: 2.5rem;
}

.home-bg .home .content h3{
   font-size: 3rem;
   text-transform: uppercase;
   margin-top: 1.5rem;
   color:var(--black);
}

.home-bg .home .content p{
   font-size: 1.6rem;
   padding:1rem 0;
   line-height: 2;
   color:var(--light-color);
}

.home-bg .home .content a{
   display: inline-block;
   width: auto;
}


.home-category .box-container {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
   gap: 1rem;
   justify-content: center;
   align-items: flex-start;
}

.home-category .box-container .box {
   padding: 1rem;
   text-align: center;

   background-color: var(--white);
   box-shadow: var(--box-shadow);
   border-radius: .5rem;
}

.home-category .box-container .box img {
   width: 100%;
   margin-bottom: 0.5rem;
}

.home-category .box-container .box h2 {

   padding: 0.5rem 0;
}



.home-category{
   padding-bottom: 0;
}

.products .box-container{
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
   gap:1.5rem;
   justify-content: center;
   align-items: flex-start;
    max-width: 1200px;
   margin: 0 auto;
}

.products .box-container .box{
   padding:2rem;
   text-align: center;
   border:var(--border);
   background-color: var(--white);
   box-shadow: var(--box-shadow);
   border-radius: .5rem;
   position: relative;
}

.products .box-container .box .price{
   position: absolute;
   top:1rem; left:1rem;
   padding:1rem;
   border-radius: .5rem;
   background-color: var(--red);
   font-size: 1.8rem;
   color:var(--white);
}

.products .box-container .box .price span{
   font-size: 2.5rem;
   color:var(--white);
   margin:0 .2rem;
}

.products .box-container .box .fa-eye{
   position: absolute;
   top:1rem; right:1rem;
   border-radius: .5rem;
   height: 4.5rem;
   line-height: 4.3rem;
   width: 5rem;
   border:var(--border);
   color:var(--black);
   font-size: 2rem;
   background-color: var(--white);
}

.products .box-container .box .fa-eye:hover{
   color:var(--white);
   background-color: var(--black);
}

.products .box-container .box img{
   width: 100%;
   margin-bottom: 1rem;
}

.products .box-container .box .name{
   font-size: 2rem;
   color:var(--black);
   padding:1rem 0;
}

.products .box-container .box .qty{
   margin:.5rem 0;
   border-radius: .5rem;
   padding:1.2rem 1.4rem;
   font-size: 1.8rem;
   color:var(--black);
   border:var(--border);
   width: 100%;
}

.products .box-container .subcategory-header {
    grid-column: 1 / -1; 
    background-color: #f5f5f5;
    padding: 2rem 1.5rem;
    text-align: left;
    margin-top: 3rem;
    border-radius: .5rem;
    box-shadow: var(--box-shadow);
     scroll-margin-top: 12rem; 
}
.products .box-container .subcategory-header h2 {
    margin: 0;
    font-size: 2.2rem;
    color: #222;
    border-left: 6px solid #444;
    padding-left: 1.5rem;
}

.subcategory-menu {
   position: sticky;
   top: 190px; /* header'ın hemen altı */
   z-index: 999;
   background: #fafafa;
   display: flex;
   overflow-x: auto;
   white-space: nowrap;
   border-bottom: 1px solid #ddd;
}






.subcategory-menu::-webkit-scrollbar {
   display: none; /* Chrome/Safari için scrollbar gizleme */
}

.subcategory-button {
   display: inline-block;
   padding: 0.8rem 1.6rem;
   background-color: #eee;
   color: #333;
   border-radius: .5rem;
   text-decoration: none;
   font-size: 1.6rem;
   margin-right: 1rem;
   flex: 0 0 auto;
   transition: background-color 0.3s;
}

.subcategory-button:hover {
   background-color: #ccc;
}





.quick-view .box{
   max-width: 50rem;
   padding:2rem;
   text-align: center;
   border:var(--border);
   background-color: var(--white);
   box-shadow: var(--box-shadow);
   border-radius: .5rem;
   position: relative;
   margin:0 auto;
}

.quick-view .box img{
   height: 25rem;
   margin-bottom: 1rem;
}

.quick-view .box .price{
   position: absolute;
   top:1rem; left:1rem;
   padding:1rem;
   border-radius: .5rem;
   background-color: var(--red);
   font-size: 1.8rem;
   color:var(--white);
}

.quick-view .box .price span{
   font-size: 2.5rem;
   color:var(--white);
   margin:0 .2rem;
}

.quick-view .box .qty{
   margin:.5rem 0;
   border-radius: .5rem;
   padding:1.2rem 1.4rem;
   font-size: 1.8rem;
   color:var(--black);
   border:var(--border);
   width: 100%;
}

.quick-view .box .name{
   font-size: 2rem;
   color:var(--black);
   padding:1rem 0;
}

.quick-view .box .details{
   padding:1rem 0;
   line-height: 2;
   font-size: 1.5rem;
   color:var(--light-color);
}

.p-category{
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(27rem, 1fr));
   gap:1.5rem;
   justify-content: center;
   align-items: flex-start;
}

.p-category{
   padding-bottom: 0;
}

.p-category a{
   padding:1.5rem;
   text-align: center;
   border:var(--border);
   background-color: var(--white);
   box-shadow: var(--box-shadow);
   border-radius: .5rem;
   font-size: 2rem;
   text-transform: capitalize;
   color:var(--black);
}

.p-category a:hover{
   background-color: var(--black);
   color: var(--white);
}

.about .row{
   display: flex;
   flex-wrap: wrap;
   gap:3rem;
   align-items: center;
}

.about .row .box{
   flex:1 1 40rem;
   text-align: center;
}

.about .row .box img{
   margin-bottom: 2rem;
   height: 40rem;
}

.about .row .box h3{
   padding:1rem 0;
   font-size: 2.5rem;
   text-transform: uppercase;
   color:var(--black);
}

.about .row .box p{
   line-height: 2;
   font-size: 1.5rem;
   color:var(--light-color);
   padding:1rem 0;
}

.about .row .box .btn{
   display: inline-block;
   width: auto;
}

.reviews .box-container{
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
   gap:1.5rem;
   justify-content: center;
   align-items: flex-start;
}

.reviews .box-container .box{
   padding:2rem;
   text-align: center;
   border:var(--border);
   background-color: var(--white);
   box-shadow: var(--box-shadow);
   border-radius: .5rem;
}

.reviews .box-container .box img{
   height: 10rem;
   width: 10rem;
   border-radius: 50%;
   margin-bottom: 1rem;
   object-fit: cover;
}

.reviews .box-container .box p{
   padding:1rem 0;
   font-size: 1.6rem;
   color:var(--light-color);
   line-height: 2;
}

.reviews .box-container .box .stars{
   display: inline-block;
   padding:1rem;
   background-color: var(--light-bg);
   border:var(--border);
   border-radius: .5rem;
   margin:.5rem 0;
}

.reviews .box-container .box .stars i{
   font-size: 1.7rem;
   color:var(--orange);
   margin:0 .3rem;
}

.reviews .box-container .box h3{
   margin-top: 1rem;
   color:var(--black);
   font-size: 2rem;
}

.contact form{
   margin:0 auto;
   max-width: 50rem;
   padding:2rem;
   text-align: center;
   border:var(--border);
   background-color: var(--white);
   box-shadow: var(--box-shadow);
   border-radius: .5rem;
   padding-top: 1rem;
}

.contact form .box{
   width: 100%;
   padding:1.2rem 1.4rem;
   border:var(--border);
   margin:1rem 0;
   background-color: var(--light-bg);
   font-size: 1.8rem;
   color:var(--black);
   border-radius: .5rem;
}

.contact form textarea{
   height: 15rem;
   resize: none;
}

.contact-info {
   max-width: 50rem;
   margin: 2rem auto;
   padding: 1.5rem;
   border: var(--border);
   background-color: var(--white);
   box-shadow: var(--box-shadow);
   border-radius: .5rem;
   font-size: 1.8rem;
   line-height: 2.6rem;
   text-align: left;
}

.contact-info p {
   margin: 1rem 0;
}

.contact-info a {
   color: var(--main-color);
   text-decoration: none;
}

.contact-info i {
   margin-right: .5rem;
   color: var(--main-color);
}


.search-form form{
   display: flex;
   gap:1.5rem;
   align-items: center;
}

.search-form form .box{
   width: 100%;
   padding:1.4rem;
   border:var(--border);
   margin:1rem 0;
   background-color: var(--white);
   box-shadow: var(--box-shadow);
   font-size: 2rem;
   color:var(--black);
   border-radius: .5rem;
}

.search-form form .btn{
   display: inline-block;
   width: auto;
   margin-top: 0;
}




.display-orders{
   text-align: center;
   padding-bottom: 0;
}

.display-orders p{
   display: inline-block;
   padding:1rem 2rem;
   margin:1rem .5rem;
   font-size: 2rem;
   text-align: center;
   border:var(--border);
   background-color: var(--white);
   box-shadow: var(--box-shadow);
   border-radius: .5rem;
}

.display-orders p span{
   color:var(--red);
}

.display-orders .grand-total{
   margin-top: 2rem;
   font-size: 2.5rem;
   color:var(--light-color);
}

.display-orders .grand-total span{
   color:var(--red);
}



.checkout-orders form{
   padding:2rem;
   border:var(--border);
   background-color: var(--white);
   box-shadow: var(--box-shadow);
   border-radius: .5rem;
}

.checkout-orders form h3{
   border-radius: .5rem;
   background-color: var(--black);
   color:var(--white);
   padding:1.5rem 1rem;
   text-align: center;
   text-transform: uppercase;
   margin-bottom: 2rem;
   font-size: 2.5rem;
}

.checkout-orders form .flex{
   display: flex;
   flex-wrap: wrap;
   gap:1.5rem;
   justify-content: space-between;
}

.checkout-orders form .flex .inputBox{
   width: 49%;
}

.checkout-orders form .flex .inputBox .box{
   width: 100%;
   border:var(--border);
   border-radius: .5rem;
   font-size: 1.8rem;
   color:var(--black);
   padding:1.2rem 1.4rem;
   margin:1rem 0;
   background-color: var(--light-bg);
}

.checkout-orders form .flex .inputBox span{
   font-size: 1.8rem;
   color:var(--light-color);
}

.order-item {
   border: var(--border);
   background-color: var(--white);
   box-shadow: var(--box-shadow);
   border-radius: .5rem;
   margin-bottom: 1rem;
   overflow: hidden;
}

.order-header {
   padding: 1.5rem 2rem;
   cursor: pointer;
   background-color: #f0f0f0;
   font-size: 1.8rem;
   font-weight: bold;
}

.order-details {
   max-height: 0;
   overflow: hidden;
   transition: max-height 0.4s ease;
   padding: 0 2rem;
   font-size: 1.6rem;
   color: var(--light-color);
}

.order-details.active {
   max-height: 500px; /* yeterli bir yükseklik verin */
   padding-bottom: 1.5rem;
}


.placed-orders .box-container{
   display: flex;
    flex-direction: column; /* YAN YANA DEĞİL ALT ALTA */
   gap:1.5rem;
    align-items: center; /* Ortala */
}

.placed-orders .box-container .box {
   width: 100%; /* TAM GENİŞLİK */
    
   padding: 1rem 2rem;
   border: var(--border);
   background-color: var(--white);
   box-shadow: var(--box-shadow);
   border-radius: .5rem;
}

.placed-orders .box-container .box p{
   margin:.5rem 0;
   line-height: 1.8;
   font-size: 2rem;
   color:var(--light-color);
}

.placed-orders .box-container .box p span{
   color:var(--green);
}



#mesaj:empty {
   display: none;
}


.footer {
  background-color: #f9f9f9;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  color: #333;
  border-top: 1px solid #ddd;
}

.footer .footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1300px;
  margin: auto;
}

.footer .footer-column {
  flex: 1 1 22%;
  min-width: 220px;
  margin-bottom: 20px;
}

.footer h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #111;
}

.footer a {
  display: block;
  color: #444;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 16px;
}

.footer a:hover {
  color: #000;
}

.footer .etbis-qr {
  text-align: center;
}

.footer .etbis-qr img {
  max-width: 100px;
  margin-top: 10px;
}

.footer .footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: #777;
}

.footer .social-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  margin-top: 5px;
}

.footer .social-icon {
  width: 30px;
  height: 30px;
  margin-right: 6px;
}




.qty-and-btn {
   display: flex;
   align-items: center; /* input ve butonu dikeyde ortalar */
   gap: 0.5rem;
   justify-content: center;
   margin-top: 1rem;
}

.qty-and-btn .qty {
   width: 70%;
   font-size: 1.6rem;
   padding: 1rem;
   height: 4.5rem;
   border-radius: .5rem;
   border: var(--border);
   box-sizing: border-box;
}

.small-btn {
   width: 4.5rem;
   height: 4.5rem;
   font-size: 2rem;
   border-radius: .5rem;
   background-color: var(--green);
   color: white;
   cursor: pointer;
   border: none;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: background-color 0.3s;
   padding: 0;
}

.small-btn:hover {
   background-color: var(--black);
}

.search-form-container {
    display: flex;
    flex-direction: column; /* Alt alta dizer */
    gap: 10px; /* Aralarına boşluk koyar */
    max-width: 400px; /* Genişlik kontrolü, istersen artırabilirsin */
    margin: auto; /* Ortalamak için */
}

.search-form-container .box {
    width: 100%; /* Tüm kutular tam genişlikte olsun */
    box-sizing: border-box; /* Padding ve border, genişlikten taşmasın */
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.sepet-mesaj {
    padding: 12px;
    margin: 10px auto 15px;
    max-width: 600px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    font-size: 15px;
}

.sepet-mesaj.uyari {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.sepet-mesaj.basarili {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}




@media (max-width: 768px) {
    .search-form-container {
        max-width: 100%; /* Küçük ekranlarda tam genişlik */
        padding: 0 10px; /* Kenarlardan boşluk bırakır */
    }
}



@media (max-width:768px){
       .subcategory-menu{
      top: 190px;
   }
 
   .home-bg{
      background-position: left;
   }

   .home-bg .home{
      justify-content: center;
      text-align: center;
   }

   .checkout-orders form .flex .inputBox{
      width: 100%;
   }
#mesaj:empty {
   display: none;
}
}

@media (max-width:450px){
   .subcategory-menu{
      top: 190px;
   }
    
      .home-category .box-container {
      grid-template-columns: repeat(3, minmax(0, 1fr));
   }

   .home-category .box-container .box {
      padding: 0.5rem;
   }

   .home-category .box-container .box h3 {
      font-size: 0.9rem;
   }

   .home-category .box-container .box p {
      display: none; /* Opsiyonel: Açıklamaları gizleyerek yer kazanabilirsin */
   }


   .products .box-container{
      grid-template-columns: repeat(2, 1fr);
   }

   .quick-view .box img{
      height: auto;
      width: 100%;
   }

   .about .row .box img{
      width: 100%;
      height: auto;
   }   

   .shopping-cart .box-container{
      grid-template-columns: 1fr;
   }

#mesaj:empty {
   display: none;
}


}